package org.example.domain.vo.report.allocate;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.example.domain.vo.report.ErpReport;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@EqualsAndHashCode(callSuper = false)
@Data
@ApiModel(description = "调拨明细报表视图类")
public class AllocateDepot extends ErpReport {
    
    @ApiModelProperty("depotHeadID")
    private Long id;
    
    @ApiModelProperty("单据编号")
    private String number;
    
    @ApiModelProperty("条码")
    private String barCode;
    
    @ApiModelProperty("名称")
    private String name;
    
    @ApiModelProperty("规格")
    private String standard;
    
    @ApiModelProperty("型号")
    private String model;
    
    @ApiModelProperty("单位")
    private String unit;
    
    @ApiModelProperty("数量")
    private BigDecimal operNumber;
    
    @ApiModelProperty("单价")
    private BigDecimal unitPrice;
    
    @ApiModelProperty("金额")
    private BigDecimal allPrice;
    
    @ApiModelProperty("调出仓库")
    private String backDepotName;
    
    @ApiModelProperty("调入仓库")
    private String inDepotName;
    
    @ApiModelProperty("入库时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date operTime;
    
    @ApiModelProperty("备注")
    private String remark;
}
